title: titleText,
body: bodyText,
sound: null,
+ urgency: this._urgencyForBreakType(nextBreakType),
allowDelay: true,
allowSkip: true,
allowTake: false,
title: titleText,
body: bodyText,
sound: null,
+ urgency: this._urgencyForBreakType(nextBreakType),
allowDelay: true,
allowSkip: false,
allowTake: true,
});
+ this._source.addNotification(this._notification);
this._scheduleUpdateState(BREAK_OVERDUE_TIME_SECONDS);
} else if (breakDueAgo >= BREAK_OVERDUE_TIME_SECONDS &&
title: _('Break Overdue'),
body: bodyText,
sound: null,
+ urgency: this._urgencyForBreakType(nextBreakType),
allowDelay: true,
allowSkip: false,
allowTake: true,
});
+ this._source.addNotification(this._notification);
this._scheduleUpdateState(updateTimeoutSeconds);
} else if (this._previousState === BreakState.IN_BREAK) {
title: _('Break Interrupted'),
body: bodyText,
sound: null,
+ urgency: this._urgencyForBreakType(nextBreakType),
allowDelay: false,
allowSkip: false,
allowTake: false,
});
+ this._source.addNotification(this._notification);
this._scheduleUpdateState(updateTimeoutSeconds);
}
- if (this._notification) {
- this._notification.urgency = this._urgencyForBreakType(this._manager.currentBreakType);
- this._source.addNotification(this._notification);
- }
-
break;
}